import 'package:json_annotation/json_annotation.dart';

part 'UserVo.g.dart';

///UserVo
@JsonSerializable()
class UserVo {

  ///头像地址
  @JsonKey(name: "avatarUrl")
  String? avatarUrl;

  ///id
  @JsonKey(name: "id")
  String? id;

  ///用户名
  @JsonKey(name: "name")
  String? name;

  ///手机号
  @JsonKey(name: "phone")
  String? phone;

  ///注册日期
  @JsonKey(name: "registerDate")
  String? registerDate;

  ///个性签名
  @JsonKey(name: "signature")
  String? signature;

  UserVo({
    this.avatarUrl,
    this.id,
    this.name,
    this.phone,
    this.registerDate,
    this.signature,
  });

  factory UserVo.fromJson(Map<String, dynamic> json) => _$UserVoFromJson(json);

  Map<String, dynamic> toJson() => _$UserVoToJson(this);
}
